from django.db import models

# Create your models here.
class Team(models.Model):
    id = models.AutoField(primary_key=True)
    avatar = models.ImageField('头像', upload_to='team', help_text='最佳尺寸:500*755')
    name = models.CharField('姓名', max_length=100)
    title = models.CharField('职务', max_length=100)
    rank = models.IntegerField('排序')

    class Meta:
        db_table = 'team'
        verbose_name = '团队管理'
        verbose_name_plural = '团队管理'

    def __str__(self):
        return self.name